package com.yanqu.road.logic.bussiness.activity;

import com.yanqu.road.entity.activity.seacraft.*;
import com.yanqu.road.entity.activity.seacraft.config.SeacraftSouthSeaBattleConfig;
import com.yanqu.road.entity.activity.seacraft.config.SeacraftSouthSeaFloorConfig;
import com.yanqu.road.entity.activity.seacraft.config.SeacraftSouthSeaGuessConfig;
import com.yanqu.road.entity.activity.seacraft.config.SeacraftSouthSeaShipConfig;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.List;
import java.util.Map;

/**
 * @Description
 * @Author cwq
 * @Data 2022/1/20 11:25
 */
public class SeacraftSouthSeaBusiness {

    // Config
    public static List<SeacraftSouthSeaShipConfig> getSeacraftSouthSeaShipConfigList(int activityId){
        return DaoHelper.getSeacraftSouthSeaConfigDaoImpl().getSeacraftSouthSeaShipConfigList(activityId);
    }

    public static List<SeacraftSouthSeaGuessConfig> getSeacraftSouthSeaGuessConfigList(int activityId){
        return DaoHelper.getSeacraftSouthSeaConfigDaoImpl().getSeacraftSouthSeaGuessConfigList(activityId);
    }

    public static List<SeacraftSouthSeaFloorConfig> getSeacraftSouthSeaFloorConfigList(int activityId){
        return DaoHelper.getSeacraftSouthSeaConfigDaoImpl().getSeacraftSouthSeaFloorConfigList(activityId);
    }

    public static List<SeacraftSouthSeaBattleConfig> getSeacraftSouthSeaBattleConfigList(int activityId){
        return DaoHelper.getSeacraftSouthSeaConfigDaoImpl().getSeacraftSouthSeaBattleConfigList(activityId);
    }

    // user
    public static Map<Long,SeacraftSouthSeaCrossUserData> getSeacraftSouthSeaCrossUserDataMap(int activityId){
        return DaoHelper.getSeacraftSouthSeaCrossUserDataDaoImplDaoImpl().getSeacraftSouthSeaCrossUserDataMap(activityId);
    }

    public static boolean updateSeacraftSouthSeaCrossUserData(SeacraftSouthSeaCrossUserData data){
        return DaoHelper.getSeacraftSouthSeaCrossUserDataDaoImplDaoImpl().update(data);
    }

    public static boolean addSeacraftSouthSeaCrossUserData(SeacraftSouthSeaCrossUserData data){
        return DaoHelper.getSeacraftSouthSeaCrossUserDataDaoImplDaoImpl().add(data);
    }

    // change
    public static Map<Long, SeacraftSouthSeaCrossChallengeData> getSeacraftSouthSeaCrossChallengeDataMap(int activityId){
        return DaoHelper.getSeacraftSouthSeaCrossChallengeDataDaoImpl().getSeacraftSouthSeaCrossChallengeDataMap(activityId);
    }

    public static boolean updateSeacraftSouthSeaCrossChallengeData(SeacraftSouthSeaCrossChallengeData data){
        return DaoHelper.getSeacraftSouthSeaCrossChallengeDataDaoImpl().update(data);
    }

    public static boolean addSeacraftSouthSeaCrossChallengeData(SeacraftSouthSeaCrossChallengeData data){
        return DaoHelper.getSeacraftSouthSeaCrossChallengeDataDaoImpl().add(data);
    }

    // union
    public static Map<String, SeacraftSouthSeaCrossUnionData> getSeacraftSouthSeaCrossUnionDataMap(int activityId){
        return DaoHelper.getSeacraftSouthSeaCrossUnionDataDaoImpl().getSeacraftSouthSeaCrossUnionDataMap(activityId);
    }

    public static boolean addSeacraftSouthSeaCrossUnionData(SeacraftSouthSeaCrossUnionData data){
        return DaoHelper.getSeacraftSouthSeaCrossUnionDataDaoImpl().add(data);
    }

    public static boolean updateSeacraftSouthSeaCrossUnionData(SeacraftSouthSeaCrossUnionData data){
        return DaoHelper.getSeacraftSouthSeaCrossUnionDataDaoImpl().update(data);
    }

    // ship
    public static Map<String, SeacraftSouthSeaCrossUnionShipData> getSeacraftSouthSeaCrossUnionShipDataMap(int activityId){
        return DaoHelper.getSeacraftSouthSeaCrossUnionShipDataDaoImpl().getSeacraftSouthSeaCrossUnionShipDataMap(activityId);
    }

    public static boolean addSeacraftSouthSeaCrossUnionShipData(SeacraftSouthSeaCrossUnionShipData data){
        return DaoHelper.getSeacraftSouthSeaCrossUnionShipDataDaoImpl().add(data);
    }

    public static boolean updateSeacraftSouthSeaCrossUnionShipData(SeacraftSouthSeaCrossUnionShipData data){
        return DaoHelper.getSeacraftSouthSeaCrossUnionShipDataDaoImpl().update(data);
    }
    // battle detail
    public static List<SeacraftSouthSeaBattleDetailData> getSeacraftSouthSeaBattleDetailDataList(int activityId,long time){
        return DaoHelper.getSeacraftSouthSeaBattleDetailDataDaoImpl().getSeacraftSouthSeaBattleDetailDataList(activityId, time);
    }

    public static boolean addSeacraftSouthSeaBattleDetailData(SeacraftSouthSeaBattleDetailData data){
        return DaoHelper.getSeacraftSouthSeaBattleDetailDataDaoImpl().add(data);
    }

    public static boolean updateSeacraftSouthSeaBattleDetailData(SeacraftSouthSeaBattleDetailData data){
        return DaoHelper.getSeacraftSouthSeaBattleDetailDataDaoImpl().update(data);
    }

    // 日志
    public static List<SeacraftSouthSeaCrossRecordData> getSeacraftSouthSeaCrossRecordDataList(int activityId,long time){
        return DaoHelper.getSeacraftSouthSeaCrossRecordDataDaoImpl().getSeacraftSouthSeaCrossRecordDataList(activityId,time);
    }

    public static boolean addSeacraftSouthSeaCrossRecordData(SeacraftSouthSeaCrossRecordData data){
        return DaoHelper.getSeacraftSouthSeaCrossRecordDataDaoImpl().add(data);
    }

    public static boolean updateSeacraftSouthSeaCrossRecordData(SeacraftSouthSeaCrossRecordData data){
        return DaoHelper.getSeacraftSouthSeaCrossRecordDataDaoImpl().update(data);
    }

}
